package com.jcoinexchange.trade.controller.web;

import com.jcoinexchange.trade.common.vo.*;
import com.jcoinexchange.web.entity.BasicResponse;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/order")
public class TradeOrderController {

    @Operation(summary = "交易对列表")
    @PostMapping("/list")
    public BasicResponse<List<TradeOrderVO>> list(@Valid CoinPairListReq req) {
        return null;
    }

    @Operation(summary = "交易对详情")
    @PostMapping("/detail")
    public BasicResponse<TradeOrderVO> detail(@Valid CoinPairDetailRequest req) {
        return null;
    }

    @Operation(summary = "撤销委托订单")
    @PostMapping("/revocation")
    public BasicResponse<RevocationTradeOrderResponse> revocation(@Valid RevocationTradeOrderRequest req) {
        return null;
    }

    @Operation(summary = "限价下单")
    @PostMapping("/limit")
    public void limitOrder(){

    }

    @Operation(summary = "市价下单")
    @PostMapping("/market")
    public void marketOrder(){

    }

}
